package com.yyy.spring6.factoryBean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @Project ：learn_spring
 * @File ：MyFactoryBean.java
 * @IDE ：IntelliJ IDEA
 * @Author ：自由如风间
 * @Date ：2025/3/30 17:20
 * @Description ：For study.
 */

public class MyFactoryBean implements FactoryBean<User> {

    @Override
    public User getObject() throws Exception {
        return new User();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
